﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using BingVis.SilverlightClient.GoogleTransit;
using System.Windows;

namespace BingVis.SilverlightClient
{
    public class StopNameToHasStopFareConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var stopName = value as string;

            return StopsWithFares.IsFareStop(stopName) ? Visibility.Visible : Visibility.Collapsed;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return "";
        }

        #endregion
    }
}
